<?php
//,'response'
Route::group(['prefix'=>'api/xing/v1/','middleware' => ['dereq','transaction','response']], function() {
    //=======用户登陆与注册===============
    Route::post('/user/thrid/login', ['uses' => 'WxUserController@login']);  //第三方登陆
    Route::post('/user/mobile/login', ['uses' => 'WxUserController@mobileLogin']);  //手机登陆
    Route::post('/user/mobile/reg', ['uses' => 'WxUserController@mobileReg']);  //手机号注册
    Route::post('/user/sms/code', ['uses' => 'WxUserController@sendSmsCode']);  //发送手机号

    Route::post('/adv/list', ['uses' => 'AdvController@getList']);  //获取广告管理


    Route::post('/bulletin/list', ['uses' => 'BulletinController@getList']);  //获取公告列表
    Route::post('/bulletin/detail', ['uses' => 'BulletinController@detail']);  //获取单条公告
    Route::post('/article/clause', ['uses' => 'ArticleController@clause']);  //获取单条条款
    Route::post('/article/help', ['uses' => 'ArticleController@help']);  //获取单条帮助




    //===============文章接口====================
    Route::post('/article/class/list', ['uses' => 'ArticleController@getArticleClassList']);  //文章接列表接口
    Route::post('/article/detail', ['uses' => 'ArticleController@getArticleInfo']);  //文章接列表接口
    Route::post('/article/detail/collection', ['uses' => 'ArticleController@getArticleCollectionInfo']);  //文章接列表接口
    Route::post('/article/channel', ['uses' => 'ArticleController@getArticleChannel']);  //文章接列表接口
    Route::post('/user/get/detail', ['uses' => 'WxUserController@getUserDetail']);  //手机号注册
});
//=====================================用户登陆授权=============================
Route::group(['prefix'=>'api/xing/v1/','middleware' => ['dereq','apiuser','transaction','response']], function() {
    Route::post('/user/get/info', ['uses' => 'WxUserController@getUserInfo']);  //手机号注册
    Route::post('/user/my/collection', ['uses' => 'WxUserController@getUserMyCollection']);  //我的收藏
    Route::post('/user/my/comment', ['uses' => 'WxUserController@getUserMyComment']);  //我的评论
    Route::post('/user/follow', ['uses' => 'UserFollowController@setUserFollow']);  //我的关注
    Route::post('/user/my/follow', ['uses' => 'UserFollowController@getUserMyFollow']);  //我的关注
    Route::post('/user/update/nickname', ['uses' => 'WxUserController@updateUserNickname']);  //修改用户昵称
    Route::post('/user/update/headurl', ['uses' => 'WxUserController@updateUserHeadurl']);  //修改用户头像
    Route::post('/user/update/password', ['uses' => 'WxUserController@updateUserPassword']);  //修改密码
    //==================================新闻评论==========================================
    Route::post('/article/user/comment', ['uses' => 'ArticleController@setArticleComment']);  //文章接列表接口
    Route::post('/article/user/collection', ['uses' => 'ArticleController@setArticleCollection']);  //文章收藏接口



});
/**
 * 请求参数数组返回测试
 */
Route::group(['prefix'=>'api/xing/v1/','middleware' => ['enresp']], function() {
    Route::post('/user/request/test', ['uses' => 'WxUserController@testRequest']);  //获取公告列表
});
